package edu.hawaii.ics414;

/*
 * Represents information coming from a game.
 */

public class GameInfo {

  private double ignRating;
  private double metacriticRating;
  private double gamespotRating;
  private double userRating;

  /*
   * Constructor
   * 
   * @param userRating The current average user rating.
   * 
   * @param metacriticRating The metacritic rating from the web.
   * 
   * @param ignRating The ignRating from the web.
   * 
   * @param gamespotRating The gamespot rating from the web.
   */
  public GameInfo(String userRating, String metacriticRating, String ignRating,
      String gamespotRating) {
    this.ignRating = Double.parseDouble(ignRating);
    this.metacriticRating = Double.parseDouble(metacriticRating);
    this.gamespotRating = Double.parseDouble(gamespotRating);
    this.userRating = Double.parseDouble(userRating);
  }

  /*
   * Gets the gamespot Rating
   */
  public double getGamespotRating() {
    return gamespotRating;
  }

  /*
   * Gets the IGN Rating.
   */
  public double getIGNRating() {
    return ignRating;
  }

  /*
   * Gets the Metacritic Rating.
   */
  public double getMetacriticRating() {
    return metacriticRating;
  }

  /*
   * Gets the user rating.
   */
  public double getUserRating() {
    return userRating;
  }
}
